<template>
  <div class="app-container">
    <!--工具栏-->
    <div class="head-container">
      <el-row>
        <el-col :span="12">
          <el-form ref="form" :model="form" :rules="rules" size="small" label-width="120px">
            <el-form-item label="选择日期">
                <el-date-picker
                  v-model="DatePickerVal"
                  type="date"
                  placeholder="选择日期">
                </el-date-picker>
            </el-form-item>
            <el-form-item label="选择时间">
                <el-time-picker
                  v-model="timePickerVal"
                  :picker-options="{
                    selectableRange: '18:30:00 - 20:30:00'
                  }"
                  placeholder="任意时间点">
                </el-time-picker>
            </el-form-item>
            <el-form-item>
                  <el-button type="primary" @click="submitForm('carForm')">查询</el-button>
                  <el-button @click="resetForm('carForm')">重置</el-button>
                </el-form-item>
          </el-form>
        </el-col>
        <el-col :span="12">
          <el-table
                border
                :data="tabPosition=='person'?personData:carData"
                height="150"
                style="width: 100%;"
              >
                <el-table-column type="selection" />
                <el-table-column prop="name" label="姓名"/>
                <el-table-column prop="shenfen" label="身份"/>
                <el-table-column prop="position" label="岗位"/>
                <el-table-column prop="dep" label="岗位"/>
              </el-table>
        </el-col>
      </el-row>
      <div>
      </div>
    </div>
  </div>
</template>

<script>
import crudCar from '@/api/pod/car'
import CRUD, { presenter, header, form, crud } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
import pagination from '@crud/Pagination'
import { getDepts } from '@/api/system/dept'

const defaultForm = { id: null, createTime: null, updateTime: null, createBy: null, updateBy: null, name: null, carType: null, carNumber: null, driver: null, supercargo: null, waybill: null, tag: null, icon: null }
export default {
  name: 'Car',
  data() {
    return {
      permission: {
        add: ['admin', 'car:add'],
        edit: ['admin', 'car:edit'],
        del: ['admin', 'car:del']
      },
      DatePickerVal: new Date(),
      timePickerVal: new Date(),
      rules: {
         
      }
    }
  },
  methods: {
    
  }
}
</script>

<style scoped>

</style>
